package com.roc.steelend.util;


import com.fasterxml.jackson.databind.node.BigIntegerNode;

import java.math.BigInteger;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 流水号的工具类
 */
public class LshUtil {

//  获取采购平板/带钢大类的流水号
    public  static BigInteger  getBuyNo1TypeLsh(){
        //定义需要返回的流水号
        String serialNo = null;
        //先查询到今天的日期，格式:"yyyyMMdd"
        String todayDate = new SimpleDateFormat("yyyyMMddHHmmss")
                .format(new Date());
        todayDate="9"+"6"+todayDate;

        return new BigInteger(todayDate);
    }
//    获取采购卷板大类的流水号
public  static BigInteger  getBuyNo2TypeLsh(){
    //定义需要返回的流水号
    String serialNo = null;
    //先查询到今天的日期，格式:"yyyyMMdd"
    String todayDate = new SimpleDateFormat("yyyyMMddHHmmss")
            .format(new Date());
    todayDate="9"+"5"+todayDate;

    return new BigInteger(todayDate);
}
//    获取采购其他产品大类的流水号
public  static BigInteger getBuyNo3TypeLsh(){
    //定义需要返回的流水号
    String serialNo = null;
    //先查询到今天的日期，格式:"yyyyMMdd"
    String todayDate = new SimpleDateFormat("yyyyMMddHHmmss")
            .format(new Date());
    todayDate="9"+"4"+todayDate;

    return new BigInteger(todayDate);
}

    public  static BigInteger getSaleNo1TypeLsh(){
        //定义需要返回的流水号
        String serialNo = null;
        //先查询到今天的日期，格式:"yyyyMMdd"
        String todayDate = new SimpleDateFormat("yyyyMMddHHmmss")
                .format(new Date());
        todayDate="7"+"6"+todayDate;

        return new BigInteger(todayDate);
    }

    //    获取销售卷板的流水号
    public  static BigInteger getSaleNo2TypeLsh(){
        //定义需要返回的流水号
        String serialNo = null;
        //先查询到今天的日期，格式:"yyyyMMdd"
        String todayDate = new SimpleDateFormat("yyyyMMddHHmmss")
                .format(new Date());
        todayDate="7"+"5"+todayDate;

        return new BigInteger(todayDate);
    }

    //    获取销售其他类型的流水号
    public  static BigInteger getSaleNo3TypeLsh(){
        //定义需要返回的流水号
        String serialNo = null;
        //先查询到今天的日期，格式:"yyyyMMdd"
        String todayDate = new SimpleDateFormat("yyyyMMddHHmmss")
                .format(new Date());
        todayDate="7"+"4"+todayDate;

        return new BigInteger(todayDate);
    }
//    获取开平订单的流水号
    public  static  BigInteger getKaiPingNo1TypeLsh(){
        //定义需要返回的流水号
        String serialNo = null;
        //先查询到今天的日期，格式:"yyyyMMdd"
        String todayDate = new SimpleDateFormat("yyyyMMddHHmmss")
                .format(new Date());
        todayDate="8"+"6"+todayDate;

        return new BigInteger(todayDate);
    }

    //    获取普通财务的流水号
    public  static  BigInteger getAccountCommonLsh(){
        //定义需要返回的流水号
        String serialNo = null;
        //先查询到今天的日期，格式:"yyyyMMdd"
        String todayDate = new SimpleDateFormat("yyyyMMddHHmmss")
                .format(new Date());
        todayDate="6"+"3"+todayDate;

        return new BigInteger(todayDate);
    }
    //    获取特殊财务的流水号
    public  static  BigInteger getAccountSpecialLsh(){
        //定义需要返回的流水号
        String serialNo = null;
        //先查询到今天的日期，格式:"yyyyMMdd"
        String todayDate = new SimpleDateFormat("yyyyMMddHHmmss")
                .format(new Date());
        todayDate="6"+"2"+todayDate;

        return new BigInteger(todayDate);
    }

    public  static  BigInteger getInvoiceBuy(){
        //定义需要返回的流水号
        String serialNo = null;
        //先查询到今天的日期，格式:"yyyyMMdd"
        String todayDate = new SimpleDateFormat("yyyyMMddHHmmss")
                .format(new Date());
        todayDate="5"+"3"+todayDate;

        return new BigInteger(todayDate);
    }
    public  static  BigInteger getInvoiceSale(){
        //定义需要返回的流水号
        String serialNo = null;
        //先查询到今天的日期，格式:"yyyyMMdd"
        String todayDate = new SimpleDateFormat("yyyyMMddHHmmss")
                .format(new Date());
        todayDate="5"+"2"+todayDate;

        return new BigInteger(todayDate);
    }
    public  static  BigInteger getInvoiceKaiping(){
        //定义需要返回的流水号
        String serialNo = null;
        //先查询到今天的日期，格式:"yyyyMMdd"
        String todayDate = new SimpleDateFormat("yyyyMMddHHmmss")
                .format(new Date());
        todayDate="5"+"1"+todayDate;

        return new BigInteger(todayDate);
    }

    public  static  BigInteger getReconciliationBuy(){
        //定义需要返回的流水号
        String serialNo = null;
        //先查询到今天的日期，格式:"yyyyMMdd"
        String todayDate = new SimpleDateFormat("yyyyMMddHHmmss")
                .format(new Date());
        todayDate="4"+"3"+todayDate;

        return new BigInteger(todayDate);
    }

    public  static  BigInteger getReconciliationSale(){
        //定义需要返回的流水号
        String serialNo = null;
        //先查询到今天的日期，格式:"yyyyMMdd"
        String todayDate = new SimpleDateFormat("yyyyMMddHHmmss")
                .format(new Date());
        todayDate="4"+"2"+todayDate;

        return new BigInteger(todayDate);
    }

    public  static  BigInteger getReconciliationKaiping(){
        //定义需要返回的流水号
        String serialNo = null;
        //先查询到今天的日期，格式:"yyyyMMdd"
        String todayDate = new SimpleDateFormat("yyyyMMddHHmmss")
                .format(new Date());
        todayDate="4"+"1"+todayDate;

        return new BigInteger(todayDate);
    }

    public  static  BigInteger getTiaoPiaoBuy(){
        //定义需要返回的流水号
        String serialNo = null;
        //先查询到今天的日期，格式:"yyyyMMdd"
        String todayDate = new SimpleDateFormat("yyyyMMddHHmmss")
                .format(new Date());
        todayDate="3"+"3"+todayDate;

        return new BigInteger(todayDate);
    }

    public  static  BigInteger getTiaoPiaoSale(){
        //定义需要返回的流水号
        String serialNo = null;
        //先查询到今天的日期，格式:"yyyyMMdd"
        String todayDate = new SimpleDateFormat("yyyyMMddHHmmss")
                .format(new Date());
        todayDate="3"+"2"+todayDate;

        return new BigInteger(todayDate);
    }
    public  static  BigInteger getTiaoPiaoKaiping(){
        //定义需要返回的流水号
        String serialNo = null;
        //先查询到今天的日期，格式:"yyyyMMdd"
        String todayDate = new SimpleDateFormat("yyyyMMddHHmmss")
                .format(new Date());
        todayDate="3"+"1"+todayDate;

        return new BigInteger(todayDate);
    }
}
